Skip to content

Feature/umap enhanced search facets#29

Merged
realmarcin merged 11 commits intomainfrom
feature/umap-enhanced-search-facets
Mar 8, 2026
Merged

Feature/umap enhanced search facets#29
realmarcin merged 11 commits intomainfrom
feature/umap-enhanced-search-facets

Conversation

@realmarcin
Copy link
Contributor

No description provided.

- Add two-column layout with sticky sidebar for filters
- Add enhanced search bar with clear button and results counter
- Add category facet with 14 checkboxes and select all/clear buttons
- Add ecological state and origin facets
- Add active filters summary section with removable tags
- Wrap existing UMAP plot in right column
- Create new Jinja template for index.html with filtering UI
- Replace inline HTML generation with template rendering
- Add enhanced search (name + description)
- Add category facet with 14 checkboxes
- Add ecological state facet with 3 checkboxes
- Add active filters summary with removable tags
- Add two-column responsive layout (filter panel + grid)
- Add JavaScript for real-time filtering
- Maintain consistent UI with UMAP page
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a comprehensive filtering system to the UMAP visualization page, replacing the simple name/ID search with multi-field search, collapsible category/state/origin facets, and an active filters summary. It introduces a two-column layout with a sticky sidebar filter panel alongside the UMAP scatter plot.

Changes:

  • Added a filter panel with enhanced search (name, ID, environment, category), three collapsible facet sections (Category, Ecological State, Origin), and an active filters summary with removable tags
  • Replaced the previous simple search with a debounced multi-field search and faceted filtering system using AND logic across facets and OR logic within facets
  • Replaced the IMPLEMENTATION_SUMMARY.md content and added supporting documentation (PR_DESCRIPTION.md, FILTER_TESTING_GUIDE.md)

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/communitymech/templates/community_umap.html Source template: added ~585 lines of CSS for filter panel layout, HTML for facet sections, and JavaScript for filtering logic
docs/community_umap.html Regenerated build artifact reflecting the template changes
PR_DESCRIPTION.md New file describing the PR's features, testing, and checklist
IMPLEMENTATION_SUMMARY.md Entirely replaced previous LLM network quality check documentation with UMAP filter feature summary
FILTER_TESTING_GUIDE.md New manual testing checklist covering all filter panel functionality

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@realmarcin
Copy link
Contributor Author

✅ All Review Comments Addressed

All 7 Copilot review comments have been resolved with the following fixes:

Performance & Code Quality

  1. ✅ Select All/Clear All Optimization - Batch updates instead of 14 individual DOM updates (14x faster)
  2. ✅ Code Duplication Eliminated - Extracted countByFacets() helper function
  3. ✅ SVG Overflow Fixed - Added responsive container with overflow-x: auto

Accessibility

  1. ✅ Keyboard Navigation Added - Replaced <div> with <button> elements, added aria-expanded and aria-controls

Documentation

  1. ✅ IMPLEMENTATION_SUMMARY.md Restored - Original LLM quality check docs preserved, filter docs moved to UMAP_FILTER_IMPLEMENTATION.md
  2. ✅ PR Description Updated - Accurate file count and removed placeholders
  3. ✅ Placeholders Removed - Clean, production-ready documentation

Commits

  • 2dcb2cb - Address Copilot PR review comments (partial)
  • dd77067 - Complete all Copilot PR review fixes
  • b7f4e3f - Add comprehensive summary of all PR review fixes

See PR_REVIEW_FIXES_SUMMARY.md for detailed breakdown of all changes.

Status: Ready for final review and merge 🚀

Performance improvements:
- Batch update Select All/Clear All (14x faster, single updateFiltering call)
- Extract countByFacets() helper function (DRY principle)

Accessibility improvements:
- Replace div.facet-header with button elements
- Add aria-expanded and aria-controls attributes
- Add keyboard focus styles and hover states
- Update toggleFacet() to maintain ARIA state

Responsive design:
- Fix SVG overflow with responsive container CSS
- Add overflow-x: auto to .plot-container
- Constrain SVG with max-width: 100%

Documentation:
- Remove placeholder screenshot URLs from PR description
- Remove 'Closes #XX' placeholder
- Update file count to reflect all 9 modified files
- Rename IMPLEMENTATION_SUMMARY.md to UMAP_FILTER_IMPLEMENTATION.md
- Restore original IMPLEMENTATION_SUMMARY.md (LLM quality check docs)
- Add comprehensive PR_REVIEW_FIXES_SUMMARY.md

All review threads have been resolved on GitHub PR #29.
@realmarcin realmarcin merged commit 652a1d5 into main Mar 8, 2026
@realmarcin realmarcin deleted the feature/umap-enhanced-search-facets branch March 8, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants